//
//  GBInterMaster_Launcher.h
//  NetworkTest
//
//  Created by xiaosi on 16/7/26.
//  Copyright © 2016年 xiaosi. All rights reserved.
//


#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"
#import "GBInterMaster_Bean_UserInfo.h"
#import "GBInterMaster_APPLogic.h"
#import "GBInterMaster_LogicLauncher.h"
#import "GBInterMaster_CommForSystem.h"

@interface GBInterMaster_Launcher : NSObject<GCDAsyncSocketDelegate>{
    NSString* _host;
    int _port;
    GCDAsyncSocket* _socket;
    NSData* _aesKey;
    int _serverConnID;
    int _localConnID;
    bool _registerTag;
    int _currentWindow;
    GBInterMaster_Bean_UserInfo* _loginUser;
}

@property NSString* host;
@property int port;
@property GCDAsyncSocket* socket;
@property NSData* aesKey;
@property int serverConnID;
@property int localConnID;
@property bool registerTag;
@property int currentWindow;
@property GBInterMaster_Bean_UserInfo* loginUser;

- (id) initWithHost:(NSString*)serverHost withPort:(int)serverPort;

- (int) registerNotificationReceiver;

- (int) unregisterNotificationReceiver;

- (int) connectToServer;

@end
